from utils.dbbase import exc_sql


def user_info(uid,cop_id):
    sql = "SELECT open_id FROM qrcode_user WHERE userid = '%s' AND cop_id = '%s'AND is_del=FALSE " % (uid, cop_id)
    data = exc_sql(sql, fetch_type=2)
    return data